import request from '@/utils/request'

//分页查询
export function paging(query) {
    return request({
      url: '/teacher/search',
      method: 'GET',
      params: query
    })
  }
  // 添加学生信息
  export function add() {
    return request({
      url: '/user/addUser',
      method: 'POST'
    })
  }

  // 修改学生账号信息
  export function amend(data) {
    return request({
      url: '/user/update',
      method: 'PUT',
      data
    })
  }

  
//  学院下拉框
export function findAll() {
  return request({
    url: '/teacher/findAll',
    method: 'GET',

  })
}
//  专业下拉框
export function findAoo() {
  return request({
    url: '/teacher/findAoo',
    method: 'GET',

  })
}
//学生管理分页查询
export function pagingTeacher(query) {
  return request({
    url: '/teacher/search',
    method: 'GET',
    params: query
  })
}
// 学习成果认定分页查询
export function pagingAffirm(query) {
  return request({
    url: '/teacher/searchAffirm',
    method: 'GET',
    params: query
  })
}
// 学习成果转换分页查询
export function pagingTransitio(query) {
  return request({
    url: '/teacher/searchTransitio',
    method: 'GET',
    params: query
  })
}
// 认定审核通过
export function affirmAchievementPass(data) {
  return request({
    url: '/teacher/affirmAchievementPass',
    method: 'PUT',
    data
  })
}


// 认定审核不通过
export function affirmAchievementFail(data) {
  return request({
    url: '/teacher/affirmAchievementFail',
    method: 'PUT',
    data
  })
}
// 转换审核通过
export function PassTransformationOfLearningOutcomes(data) {
  return request({
    url: '/teacher/PassTransformationOfLearningOutcomes',
    method: 'PUT',
    data
  })
}
// 转换审核不通过
export function FailTransformationOfLearningOutcomes(data) {
  return request({
    url: '/teacher/FailTransformationOfLearningOutcomes',
    method: 'PUT',
    data
  })
}

//注册账号申请管理
export function accountManagement(data) {
  return request({
    url: '/teacher/accountManagement',
    method: 'PUT',
    data

  })
}